/*
** utils.h for zappy in /home/fassi_c//zappy2/zappouet/server/utils
**
** Made by clement fassi
** Login   <fassi_c@epitech.net>
**
** Started on  Wed Jun 29 12:01:36 2011 clement fassi
** Last update Wed Jun 29 12:01:38 2011 clement fassi
*/

#ifndef _UTILS_H_
# define _UTILS_H_

#include <unistd.h>

typedef struct	s_list
{
  int		cs;
  struct s_list	*next;
}		t_list;

void	*xmalloc(size_t size);
ssize_t	xwrite(int fd, const void *buf, size_t count);
ssize_t xread(int fd, void *buf, size_t count);
int	put_in_list(t_list **begin, int new_data);
int     select_elem(char *str, char *verif);
void	my_putstr(char *str);
char	*my_strcat(char *str1, char *str2);
char	**to_word_tab(const char *str, const char c);

#endif /* _UTILS_H_ */
